﻿using FB.Data.Models;
using FB.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace FB.Providers.EmployeeInfo
{
    [Table("emp_EmployeeTypes")]
    public class EmployeeType : FBAuditModel, IOrder, IEmployeeInfoEntity
    {
        [Key, StringLength(2)]
        public string EMPType { get; set; }

        [Required, StringLength(256)]
        public string Name { get; set; }

        [Required]
        public int SEQID { get; set; }

        public int? Order { get; set; }

        [EnumDataType(typeof(RecordState))]
        public RecordState RecordState { get; set; }

        [ForeignKey("SEQID")]
        public virtual Sequence Sequence { get; set; }
    }
}
